package com.kalix.jyksh.proint.biz;


import com.kalix.framework.core.impl.biz.GenericBizServiceImpl;
import com.kalix.ksh.proint.api.biz.IBuildingBeanService;
import com.kalix.ksh.proint.api.biz.IRunSitBeanService;
import com.kalix.ksh.proint.api.dao.IBuildingBeanDao;
import com.kalix.ksh.proint.api.dao.IRunSitBeanDao;
import com.kalix.jyksh.proint.entities.BuildingBean;

/**
 * Created by Wanghw on 2018/10/10.
 * 骨干线路的实时运行情况
 */
public class BuildingBeanServiceImpl extends GenericBizServiceImpl<IBuildingBeanDao, BuildingBean> implements IBuildingBeanService {
    public BuildingBeanServiceImpl(){
        super.init(BuildingBean.class.getName());
    }

    /**
     *
     * @param html
     * @return
     */
    public int getBuilding(String html) {

        String sql = "UPDATE  BuildingBean  k SET k.html = '"+html+"' where k.id = 1";
        // dao.update(sql);
        return dao.update(sql);
    }
}
